﻿<?php
include("../inc/global.inc");
$hover=2;
$url="list.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=150;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$_GET[id]?>-产品目录-三帝贸易网</title>
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/link.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/hot-pro/css/prolist.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("../inc/head_top.php")?>
<?php include("../inc/index_search.php")?>
<?php include("../inc/menu.php");?>
<div id="mian" class="topside6 side">
<div class="title">您所在的位置：<a href="/">首页</a> >> <a href="/procatalog/">产品目录</a> >> <?=$_GET[id]?></div>
<div class="onl"></div>
</div>

<div id="mian" class="topside6  sideyellow backyellow">
<div class="title1 size14 b">字母索引</div>
<div class="Class backwhite sideyellow1">
<ul>
<?php
for($i=ord("A");$i<=ord("Z");$i++){
?>
<li style="background:#E8E8E8"><a href="<?=chr($i)?>.html" target="_blank"><?=chr($i)?></a></li>
<?php }?>
</ul>
<div class="onl"></div>
</div></div>

<div id="mian" class="topside6  sideyellow backyellow">
<div class="title1 size14 b"><?=$row[hot_name]?></div>
<div class="Class backwhite sideyellow1">
<ul>
<?php
$rs2=@mysql_query("select * from catalog where c_ping='$_GET[id]' and dj>1 order by id asc limit ".($thepage-1)*$maxpage.",$maxpage");
while($row2=@mysql_fetch_array($rs2)){
?>
<li style="background:#E8E8E8"><a href="/supply-list/<?=$row2['id']?>/1.html" target="_blank"><?=$row2[cat_name]?></a><br />
<a href="/supply-city/cid-<?=$row2['id']?>.html" style="color:#999999; font-size:10px;padding-left:100px;" target="_blank" >更多..</a></li>
<?php }
?>
</ul>
<div class="onl"></div>

<?php
$rs2=@mysql_query("select count(id) from catalog where c_ping='$_GET[id]' and dj>1");
$totalrecord=@mysql_result($rs2,0);
$totalpage=ceil($totalrecord/$maxpage);
@mysql_free_result($rs2);
if($totalpage>0){
?>
<div align="center">
<?php if($thepage>1){?>
   <a href="/procatalog/<?=$_GET[id]?>.html">第一页</a>&nbsp;<a href="/procatalog/<?=$_GET[id]?>/<?=$thepage-1?>.html">上一页</a>&nbsp;
<?php }?>  
<?php if($thepage!=$totalpage&&$totalpage>0){?>
   <a href="/procatalog/<?=$_GET[id]?>/<?=$thepage+1?>.html">下一页</a>&nbsp;<a href="/procatalog/<?=$_GET[id]?>/<?=$totalpage?>.html">最后一页</a>&nbsp;
<?php }?>   
   【共<font color="red"><?=$totalrecord?></font>条记录】【每页<font color="red"><?=$maxpage?></font>条记录】【共<font color="red"><?=$totalpage?></font>页】</div>
<?php }?>


</div>
</div>

<?php include("../inc/foot.php");?>
</body>
</html>